package thread.sleep.filemove;

import java.io.File;

public class MainThread {
	public static void main(String[] args) {
		
		File file = new File("c:/day/newDir");
			
		file.mkdirs();
		
		File file2 = new File("c:/day/newDir2");
		if(!file2.exists()){
			file2.mkdir();
		}else{
			file2.delete();
			file2.mkdir();
		}
		
		new Thread(new FileCreateThread()).start();
		new Thread(new FileMoveThread()).start();
		
		//new FileCreateThread().start();
		//extands로 쓰면 이렇게 써도 된다.
	}
	
}
